#pragma once

#include <WebSocket/types.h>
#include "../ChatBuffer.h"

struct ChatSocket : public WS::Thread
{
    WS::TcpSocket m_TcpSocket;
    ChatSocket(const WS::TcpSocket &tcpSocket);
    
    void Run() override;
    void ChatServlet(const ChatBuffer& req);
};